import axios from "axios";

export const IngredientService = {
  async getAll() {
    const response = await axios.get('https://wizard-world-api.herokuapp.com/Ingredients');
    // console.log(response.data);

    return response.data;
  },

  async getById(id) {
    const response = await axios.get(`https://wizard-world-api.herokuapp.com/Ingredients/${id}`);
    return response.data;
  },
}